<?php

namespace Biz\module\Behaviors\Stock;

use Biz\model\GoodsStockLog;

abstract class StockBehaviorsAbstruct implements StockInterface
{

    const TYPE_LOG = '';


    public static function addStockLog($buyNums, $recentNum)
    {
        foreach ($buyNums as $buyNum) {
            GoodsStockLog::addLog(
                $buyNum['order_no'],
                $buyNum['p_order_no'],
                $buyNum['goods_id'],
                static::TYPE_LOG,
                $buyNum['promo_id'],
				$buyNum['promo_type'],
                $buyNum['sku_id'],
                $buyNum['buy_num'],
				$buyNum['action_uid'],
                $recentNum[$buyNum['sku_id']]
            );
        }
    }


}